cmake_minimum_required(VERSION 2.6)

set(CMAKE_CXX_FLAGS "-Wall -O0 -g -std=c++11 -fno-access-control" )  

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../deps/asio/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../deps/spdlog/include/spdlog)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SRC_LIST)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/../src SRC_LIST)
link_libraries(pthread)

add_executable(Server ${SRC_LIST})